package org.jeecg.prod.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.github.jeffreyning.mybatisplus.anno.MppMultiId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 样件配置表(MesTestunitheadCfg)实体类
 *
 * @author liting
 * @since 2024-09-19 16:15:15
 */
@Data
@TableName("mes_testunithead_cfg")
@ApiModel(value = "mes_testunithead_cfg对象", description = "样件配置主数据")
public class MesTestunitheadCfg implements Serializable {
    private static final long serialVersionUID = -92789649489613164L;
    /**
     * 主键ID
     */
    @ApiModelProperty(value = "主键ID")
    @TableId(type = IdType.AUTO)
    private Integer recId;
    /**
     * 创建时间
     */
    @Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date ctime;
    /**
     * 产线或产线组
     */
    @Excel(name = "产线或产线组", width = 15, dictTable = "mes_line_cfg", dicText = "LINE", dicCode = "LINE")
    @Dict(dictTable = "mes_line_cfg", dicText = "LINE", dicCode = "LINE")
    @ApiModelProperty(value = "产线或产线组")
    private String line;
    /**
     * 产品或产品组
     */
    @Excel(name = "产品或产品组", width = 15)
    @ApiModelProperty(value = "产品或产品组")
    private String partno;
    /**
     * 工位
     */
    @Excel(name = "工位", width = 15)
    @ApiModelProperty(value = "工位")
    private String op;
    /**
     * 工站
     */
    @Excel(name = "工站", width = 15)
    @ApiModelProperty(value = "工站")
    private String stn;
    /**
     * 序列号
     */
    @Excel(name = "序列号", width = 15)
    @ApiModelProperty(value = "序列号")
    private String unitsn;
    /**
     * 0:没有执行; 1 = 结果成功; 2 = 结果失败
     */
    @Excel(name = "运行状态", width = 15)
    @ApiModelProperty(value = "运行状态")
    @Dict(dicCode = "run_status")
    private String runStatus;
    /**
     * 1:ok件；2:ng件
     */
    @Excel(name = "样件状态类型", width = 15)
    @ApiModelProperty(value = "样件状态类型")
    @Dict(dicCode = "testUnit_typ")
    private String typ;
    /**
     * 更新时间
     */
    @Excel(name = "更新时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
    private Date utime;
    /**
     * 1: 可用，0:不可用
     */
    @Excel(name = "是否可用", width = 15)
    @ApiModelProperty(value = "是否可用")
    @Dict(dicCode = "isEnabled")
    private String enable;


}

